﻿<%@ Page Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeFile="VehicleApply.aspx.cs" Inherits="Car_VehicleApply" Title="Untitled Page" %>

<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<%@ Register Src="~/Control/DateTimePicker.ascx" TagName="DateTimePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>车辆使用申请</title>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">
        function refreshParent() {
            try {
                window.opener.document.getElementById('ctl00$ListToolBarPlaceHolder$btnRefresh').click();
            }
            catch (e) {
            }
        }     
    </script>

    <link href="../Resources/calendar.css" type="text/css" rel="stylesheet">
    <style type="text/css">
        .TextArea01 { height: 70px; width: 80%; }
        .BigTB { height: 70px; width: 80%; background: #F4F9FF; overflow-y: visible; }
        strong { color: #666666; font-family: Verdana,Arial,Helvetica,sans-serif; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="Server">
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit" runat="server" id="tdSave">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                        <span>
                            <img src="../Images/Icon/Object/Dataset-add.gif" /></span><span>提 交</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg" id="tdFg1" runat="server">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit" runat="server" id="tdClose">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Action/delete.gif" alt="关闭" /></span><span>关 闭</span>
                </div>
            </td>
            <td class="Fg" id="tdFg2" runat="server" visible="false">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit" runat="server" id="tdCancel" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnCancel" OnClick="btnCancel_Click">
                        <span>
                            <img src="../Images/Icon/Action/delete.gif" alt="取消" /></span><span>取 消</span></asp:LinkButton>
                </div>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="Server">
    <div style="padding-top: 8px; width: 100%; padding: 0 auto;">
        <table id="Table2" border="0" cellspacing="0" cellpadding="4" class="Table" width="100%">
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>申请部门：</strong>
                </td>
                <td>
                    <asp:TextBox ID="tbGroupName" runat="server" CssClass="TextBox01" MaxLength="100"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbGroupName" ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>申&nbsp;请&nbsp;人：</strong>
                </td>
                <td>
                    <asp:TextBox ID="tbApplicantName" runat="server" CssClass="TextBox01" MaxLength="100"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbApplicantName"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由：</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtPurpose" runat="server" CssClass="TextBox01" MaxLength="200"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPurpose"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle" width="180px">
                    <strong>开始时间：</strong>
                </td>
                <td>
                    <uc1:DateTimePicker ID="dtpStartTime" runat="server" width="200px" />
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>结束时间：</strong>
                </td>
                <td>
                    <uc1:DateTimePicker ID="dtpEndTime" runat="server" width="200px" />
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>天&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数：</strong>
                </td>
                <td>
                    <asp:TextBox ID="tbRemark2" runat="server" CssClass="TextBox01" MaxLength="4" Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbRemark2"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="正整数"
                        ControlToValidate="tbRemark2" SetFocusOnError="true" ValidationExpression="^[1-9]*([0-9]*|[1-9]*)$"
                        Display="Dynamic">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>人&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数：</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtPeopCount" runat="server" CssClass="TextBox01" MaxLength="4"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPeopCount"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="正整数"
                        ControlToValidate="txtPeopCount" SetFocusOnError="true" ValidationExpression="^[1-9]*([0-9]*|[1-9]*)$"
                        Display="Dynamic">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>出&nbsp;发&nbsp;地：</strong>
                </td>
                <td>
                    <asp:TextBox ID="tbStartAddress" runat="server" CssClass="TextBox01" MaxLength="100"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbStartAddress"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>目&nbsp;的&nbsp;地：</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtDestination" runat="server" CssClass="TextBox01" MaxLength="100"
                        Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtDestination"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="display: none;">
                <td align="center" class="DetailTitle">
                    <strong>用车类型：</strong>
                </td>
                <td>
                    <asp:RadioButtonList runat="server" ID="cblYclx" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Text="公务车辆" Value="公用" Selected="True">
                        </asp:ListItem>
                        <asp:ListItem Text="外借车辆" Value="外借">
                        </asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>预&nbsp;约&nbsp;人：</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtRemark3" runat="server" CssClass="TextBox01" MaxLength="15" Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtRemark3"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>联系电话：</strong>
                </td>
                <td>
                    <asp:TextBox ID="tbPhone" runat="server" CssClass="TextBox01" MaxLength="20" Width="200px">
                    </asp:TextBox><span class="Alter">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbPhone"
                        ErrorMessage="请填写"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="手机号码"
                        ControlToValidate="tbPhone" SetFocusOnError="true" ValidationExpression="^1\d{10}$"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="DetailTitle">
                    <strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注<br />
                        (不超过500字)：</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtNote" runat="server" CssClass="TextArea01" Rows="5" TextMode="MultiLine"
                        Width="300px">
                    </asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td colspan="2">
                    <asp:TextBox ID="tbUserID" runat="server" CssClass="TextBox01">
                    </asp:TextBox>
                    <asp:TextBox ID="tbRemark1" runat="server" CssClass="TextBox01">
                    </asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
